CMAKE_MINIMUM_REQUIRED(VERSION 3.10)

PROJECT(
    cpp-syntax-practice
    VERSION 0.0.1
    LANGUAGES CXX)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)

AUX_SOURCE_DIRECTORY(src SRC_LIST)

SET(EXE_NAME csp)

ADD_EXECUTABLE(${EXE_NAME} ${SRC_LIST})
TARGET_INCLUDE_DIRECTORIES(${EXE_NAME} PUBLIC include ${CMAKE_CURRENT_BINARY_DIR}/include)
TARGET_LINK_DIRECTORIES(${EXE_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/lib)
